<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="How Do I Change the Time Zone and Time of the Agent Host?">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002128909289">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>How Do I Change the Time Zone and Time of the Agent Host?</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002128909289"></a><a name="EN-US_TOPIC_0000002128909289"></a>

<h1 class="topictitle1">How Do I Change the Time Zone and Time of the Agent Host?</h1>
<div id="body0000002128909289"><p id="EN-US_TOPIC_0000002128909289__p8060118">If the time of the agent host is inconsistent with that of the <span id="EN-US_TOPIC_0000002128909289__text49838681316">OceanProtect</span>, you can change the time zone and time of the agent host by referring to this section.</p>
<div class="section" id="EN-US_TOPIC_0000002128909289__section14220121211119"><h4 class="sectiontitle">Linux OS</h4><p id="EN-US_TOPIC_0000002128909289__p18979525108">The following uses SUSE Linux Enterprise Server 12 SP4 as an example:</p>
<ol id="EN-US_TOPIC_0000002128909289__ol1265602014114"><li id="EN-US_TOPIC_0000002128909289__li12252102115312"><span>Log in to the agent host as user <strong id="EN-US_TOPIC_0000002128909289__b948011514410">root</strong>.</span></li><li id="EN-US_TOPIC_0000002128909289__li1040315387115"><span>Change the time zone of the agent host.</span><p><ul id="EN-US_TOPIC_0000002128909289__ul8891125291317"><li id="EN-US_TOPIC_0000002128909289__li389155251317">To change the time format to Coordinated Universal Time (UTC), run the following command:<pre class="screen" id="EN-US_TOPIC_0000002128909289__screen6814497129">ln -sf /user/share/zoneinfo/UTC /etc/localtime</pre>
</li><li id="EN-US_TOPIC_0000002128909289__li46107352175">To change the time format to China Standard Time (CST), run the following command:<pre class="screen" id="EN-US_TOPIC_0000002128909289__screen1610235131720">ln -sf /user/share/zoneinfo/<em id="EN-US_TOPIC_0000002128909289__i289372161813">Asia/Shanghai</em> /etc/localtime</pre>
<div class="note" id="EN-US_TOPIC_0000002128909289__note168911016201813"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000002128909289__p8891816101814">Replace <em id="EN-US_TOPIC_0000002128909289__i38300338183">Asia/Shanghai</em> in the command with the target time zone.</p>
</div></div>
</li></ul>
</p></li><li id="EN-US_TOPIC_0000002128909289__li2333558125"><span>Run the following command to change the system time of the agent host:</span><p><pre class="screen" id="EN-US_TOPIC_0000002128909289__screen1879653510207">date -s "20241125 20:22:35"</pre>
</p></li><li id="EN-US_TOPIC_0000002128909289__li206522145018"><span>Run the following command to synchronize the hardware time with the system time:</span><p><pre class="screen" id="EN-US_TOPIC_0000002128909289__screen1620834103">hwclock --systohc </pre>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000002128909289__section118141739489"><h4 class="sectiontitle">AIX OS</h4><p id="EN-US_TOPIC_0000002128909289__p9546433815">The following uses SUSE Linux Enterprise Server 12 SP4 as an example:</p>
<ol id="EN-US_TOPIC_0000002128909289__ol25434311819"><li id="EN-US_TOPIC_0000002128909289__li115411434816"><span>Log in to the agent host as user <strong id="EN-US_TOPIC_0000002128909289__b685813419318">root</strong>.</span></li><li id="EN-US_TOPIC_0000002128909289__li155464320811"><span>Run the following command to access System Management Interface Tool (SMIT):</span><p><pre class="screen" id="EN-US_TOPIC_0000002128909289__screen65415431586">smit</pre>
</p></li><li id="EN-US_TOPIC_0000002128909289__li75516438816"><span>When information similar to the following is displayed, use arrow keys to select <strong id="EN-US_TOPIC_0000002128909289__b102518308324">System Environments</strong> and press <strong id="EN-US_TOPIC_0000002128909289__b107466323323">Enter</strong>:</span><p><pre class="screen" id="EN-US_TOPIC_0000002128909289__screen13556432080">Move cursor to desired item and press Enter.

  Software Installation and Maintenance
  Software License Management
  Manage Editions
  Devices
  System Storage Management (Physical &amp; Logical Storage)
  Security &amp; Users
  Communications Applications and Services
  Workload Partition Administration
  Print Spooling
  Advanced Accounting
  Problem Determination
  Performance &amp; Resource Scheduling
  <strong id="EN-US_TOPIC_0000002128909289__b44667210153">System Environments</strong>
  Processes &amp; Subsystems
  Applications
  Installation Assistant
  Electronic Service Agent
  Cluster Systems Management
  Using SMIT (information only)</pre>
</p></li><li id="EN-US_TOPIC_0000002128909289__li1055643085"><span>When information similar to the following is displayed, use arrow keys to select <strong id="EN-US_TOPIC_0000002128909289__b57562377323">Change / Show Date and Time</strong> and press <strong id="EN-US_TOPIC_0000002128909289__b8756937183214">Enter</strong>:</span><p><pre class="screen" id="EN-US_TOPIC_0000002128909289__screen1155144312819">Move cursor to desired item and press Enter.

  Stop the System
  Aix Security Expert
  Assign the Console
 <strong id="EN-US_TOPIC_0000002128909289__b3961131561718"> Change / Show Date and Time</strong>
  Manage Language Environment
  Change / Show Characteristics of Operating System
  Change / Show Number of Licensed Users
  Broadcast Message to all Users
  Manage System Logs
  Change / Show Characteristics of System Dump
  Change / Show Default Browser
  Web-based System Manager
  System Cryptographic Operational Mode
  Manage Remote Reboot Facility
  Manage System Hang Detection</pre>
</p></li><li id="EN-US_TOPIC_0000002128909289__li973632271812"><span>When information similar to the following is displayed, select the corresponding option to change the time zone or time and press <strong id="EN-US_TOPIC_0000002128909289__b123485411333">Enter</strong>:</span><p><pre class="screen" id="EN-US_TOPIC_0000002128909289__screen187361224184">Move cursor to desired item and press Enter.

  Change / Show Date &amp; Time
  Change Time Zone Using System Defined Values
  Change Time Zone Using User Inputted Values</pre>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000002128909289__section103321344191314"><h4 class="sectiontitle">Windows OS</h4><p id="EN-US_TOPIC_0000002128909289__p1362231317142">The following uses Windows 10 as an example:</p>
<ol id="EN-US_TOPIC_0000002128909289__ol1447855491515"><li id="EN-US_TOPIC_0000002128909289__li184781654161511"><span>Open <strong id="EN-US_TOPIC_0000002128909289__b51571315123615">Control Panel</strong> and click <strong id="EN-US_TOPIC_0000002128909289__b3294943103610">Clock and Region</strong>.</span></li><li id="EN-US_TOPIC_0000002128909289__li123173081612"><span>Click <strong id="EN-US_TOPIC_0000002128909289__b1272304804114">Set the time and date</strong>.</span></li><li id="EN-US_TOPIC_0000002128909289__li866554012013"><span>On the <strong id="EN-US_TOPIC_0000002128909289__b1995417242422">Date and Time</strong> page, click <strong id="EN-US_TOPIC_0000002128909289__b103387064317">Change time zone...</strong>, select a time zone, and click <strong id="EN-US_TOPIC_0000002128909289__b0578368433">OK</strong>.</span></li><li id="EN-US_TOPIC_0000002128909289__li16322161715229"><span>On the <strong id="EN-US_TOPIC_0000002128909289__b15291161418434">Date and Time</strong> page, click <strong id="EN-US_TOPIC_0000002128909289__b836462815436">Change date and time...</strong>, set the time, and click <strong id="EN-US_TOPIC_0000002128909289__b36348334439">OK</strong>.</span></li><li id="EN-US_TOPIC_0000002128909289__li683317142314"><span>Click <strong id="EN-US_TOPIC_0000002128909289__b18331035134310">OK</strong>.</span></li></ol>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>